import {ROUTE_NAME_USER, ROUTE_NAME_USER_REAL_NAME} from "@/constant/router_const.js";

export default {
    name: ROUTE_NAME_USER,
    path: 'user',
    component: () => import('@/views/user/User.vue'),
    children: [
        // 用户中心默认路由重定向配置
        {
            path: '',
            redirect: {name: ROUTE_NAME_USER_REAL_NAME},
        },
        // 用户中心实名认证路由配置
        {
            name: ROUTE_NAME_USER_REAL_NAME,
            path: 'realname',
            component: () => import('@/views/user/components/RealName.vue'),
        },
    ],
}